import * as Icon from "@vicons/carbon";

export default (app, options) => {

  app.component("aIcon", {
    props: ["name", "props"],
    render() {
      let icon = Icon[this.name];
      return (
        <n-icon {...this.props}>
          <icon />
          <slot></slot>
        </n-icon>
      );
    },
  });
};
